<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		
		var iPi = Math.PI;

		var aRr = [];

		for(var i=0;i<20;i++){
			var iNum = Math.random();
			aRr.push(iNum);
		}

		console.log(aRr);

		console.log(Math.floor(5.6)); //向下取整
		console.log(Math.ceil(5.6));  //向下取整


		var iN01 = 10;
		var iN02 = 20;
		var aRr2 = [];
		for(var i=0;i<40;i++){

			var iNum02 = Math.floor((iN02-iN01+1)*Math.random()) + iN01;
			aRr2.push(iNum02);	
		}

		console.log(aRr2);


	</script>
</head>
<body>
	
</body>
</html>